package com.hafu.service;
import com.hafu.dao.KhInfoDao;
import com.hafu.model.KhInfo;
import java.util.ArrayList;

public class KhInfoService {

    public  KhInfoDao khInfoDao=new KhInfoDao();
    public  Boolean addKhInfo(KhInfo kh)
    {
        Boolean aBoolean=khInfoDao.addKhInfo(kh);
        return aBoolean;
    }
    public Boolean delKhInfo(int id){
        Boolean aBoolean=khInfoDao.delKhInfo(id);
        return aBoolean;
    }
    public  ArrayList<KhInfo> getKhInfoByName(KhInfo kh){
        ArrayList<KhInfo> list=khInfoDao.getKhInfoByName(kh);
        return list;
    }
    public Boolean updateKhInfo(KhInfo kh){
        Boolean aBoolean=khInfoDao.updateKhInfo(kh);
        return aBoolean;
    }
}
